﻿/*
* Created on 2005-2-4
*
* TODO To change the template for this generated file go to
* Window - Preferences - Java - Code Style - Code Templates
*/
using System;
using System.Collections;
namespace InfoJetSoft.Service.Util
{
	
	
	/// <author>  zhghl
	/// 
	/// TODO To change the template for this generated type comment go to
	/// Window - Preferences - Java - Code Style - Code Templates
	/// </author>
	public class ContextUtil
	{
		
		//UPGRADE_ISSUE: Class hierarchy differences between ''java.util.List'' and ''ArrayList'' may cause compilation errors. 'ms-help://MS.VSCC.2003/commoner/redir/redirect.htm?keyword="jlca1186"'
		public static ArrayList parseContextIdList(string contextIdArray)
		{
			//UPGRADE_ISSUE: Class hierarchy differences between ''java.util.List'' and ''ArrayList'' may cause compilation errors. 'ms-help://MS.VSCC.2003/commoner/redir/redirect.htm?keyword="jlca1186"'
			ArrayList contextIdList = new ArrayList();
			StringTokenizer idTokenizer = new StringTokenizer(contextIdArray, JetConstant.ID_SEPARATOR);
			while (idTokenizer.HasMoreTokens())
			{
				string id = idTokenizer.NextToken().Trim();
				if (id.Length > 0)
				{
					//UPGRADE_TODO: The equivalent in .NET for method 'java.util.List.add' may return a different value. 'ms-help://MS.VSCC.2003/commoner/redir/redirect.htm?keyword="jlca1043"'
					contextIdList.Add(id);
				}
			}
			return contextIdList;
		}
	}
}